#!/bin/sh
CWD=$(pwd)
PKGS="
autoconf
automake
bin86
bison
diffutils
flex
gettext
groff
m4
make
mpfr
nasm
oprofile
patch
pcre
perl
pkg-config
texinfo
mk
bmake
"

for i in $PKGS; do
  cd system/$i || exit 1
  sh ../../build.sh install || exit 1
  cd .. || exit 1
  mv $i ../build || exit 1
  cd $CWD || exit 1
done

